package main

import "fmt"

func main() {
	var str string
	fmt.Println("请输入要反转的字符串：")
	fmt.Scanln(&str)
	str1 := ""
	for _, i := range str {
		str1 = string(i) + str1
	}
	fmt.Println(str1)
}
